import java.util.Scanner;

public class TestDome2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入数字：");
        int n = scanner.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                int sum = j * i;
                System.out.print(j + "*" + i + "=" + sum + "\t");
            }
            System.out.println();
        }
    }
}



